package com.aspose.cells;

import java.util.Iterator;

class ziq implements zagb {
   private zig b;
   private com.aspose.cells.b.a.b.zg c;
   private boolean d;
   private Color e;
   private zalw f;
   private boolean g;
   private boolean h;
   private boolean i;
   private boolean j;
   com.aspose.cells.b.a.b.zp a;
   private zakz k;
   private com.aspose.cells.b.a.b.zs l = com.aspose.cells.b.a.b.zs.a();
   private int m = 0;
   private int n = 0;
   private boolean o = false;

   ziq(zig var1) {
      this.b = var1;
      this.d = true;
      this.e = var1.Z().a().a("dk1");
      this.f = new zalw(var1, 13);
      this.g = true;
      this.h = true;
      this.i = true;
      this.j = true;
      this.a = com.aspose.cells.b.a.b.zp.a();
      this.k = new zakz(var1);
   }

   zig a() {
      return this.b;
   }

   public com.aspose.cells.b.a.b.zg b() {
      if (this.c == null) {
         this.c = zbuk.a(this.b.ac());
         this.a(this.a().j().j());
      }

      return this.c;
   }

   public void a(com.aspose.cells.b.a.b.zg var1) {
      this.c = var1;
   }

   public Color c() {
      if (this.d) {
         return this.a().R() > 40 ? this.a().Z().a().a("lt1") : this.a().Z().a().a("dk1");
      } else {
         return this.e;
      }
   }

   public void a(Color var1) {
      this.d = false;
      this.e = var1;
   }

   zalw d() {
      return this.f;
   }

   public zahf e() {
      return this.f;
   }

   public boolean f() {
      return this.g;
   }

   public void a(boolean var1) {
      this.g = var1;
   }

   public boolean g() {
      return this.h;
   }

   public void b(boolean var1) {
      this.h = var1;
   }

   public boolean h() {
      return this.i;
   }

   public void c(boolean var1) {
      this.i = var1;
   }

   public boolean i() {
      return this.j;
   }

   public void d(boolean var1) {
      this.j = var1;
   }

   zakz j() {
      return this.k;
   }

   com.aspose.cells.b.a.b.zs k() {
      return this.l;
   }

   void a(com.aspose.cells.b.a.b.zs var1) {
      this.l = var1;
   }

   int l() {
      return this.m;
   }

   void a(int var1) {
      this.m = var1;
   }

   int m() {
      return this.n;
   }

   void b(int var1) {
      this.n = var1;
   }

   protected void finalize() throws Exception {
      this.e(false);
   }

   public void n() {
      this.e(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void e(boolean var1) {
      if (!this.o) {
         if (var1) {
            if (this.c != null) {
               this.c.n();
            }

            if (this.k != null) {
               Iterator var2 = this.k.iterator();

               while(var2.hasNext()) {
                  zalb var3 = (zalb)var2.next();
                  var3.m();
               }
            }
         }

         this.o = true;
      }

   }
}
